
<!DOCTYPE html>
<html lang="en">
	<include file="Public:header" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta charset="utf-8">
	<script type="text/javascript" src="__PUBLIC__/js/jquery.min.js"></script>
	<script type="text/javascript" charset="utf-8" src="__PUBLIC__/Common/umeditor/umeditor.config.js"></script>
	<script type="text/javascript" charset="utf-8" src="__PUBLIC__/Common/umeditor/umeditor.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/Common/umeditor/lang/zh-cn/zh-cn.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/city.min.js"></script>
	<link rel="stylesheet" href="__PUBLIC__/css/city.css" />
	<link rel="stylesheet" href="__PUBLIC__/css/matrix-style.css" />
	<link rel="stylesheet" href="__PUBLIC__/css/bootstrap-responsive.min.css" />
	<link rel="stylesheet" href="__PUBLIC__/css/colorpicker.css" />
	<link rel="stylesheet" href="__PUBLIC__/css/datepicker.css" />
	<link rel="stylesheet" href="__PUBLIC__/css/uniform.css" />
	<link rel="stylesheet" href="__PUBLIC__/css/select2.css" />
	<link rel="stylesheet" href="__PUBLIC__/css/matrix-media.css" />
	<link rel="stylesheet" href="__PUBLIC__/css/bootstrap-wysihtml5.css" />
	<link rel="stylesheet" href="__PUBLIC__/font-awesome/css/font-awesome.css" />
	<link rel="stylesheet" href="__ROOT__/Statics/Matrixadmin/css/matrix-style.css" />
	<link rel="stylesheet" href='http://fonts.useso.com/css?family=Open+Sans:400,700,800' type='text/css'>
	<link rel="stylesheet" href="__PUBLIC__/Common/umeditor/themes/default/css/umeditor.min.css" type="text/css">
	

	<body>

		<div id="header">
			<h1><a href="#">{:C('SITENAME')}--管理中心</a></h1>
		</div>
		<include file="Public:top" />
		<include file="Public:nav" />
		<div id="content">
			<div id="content-header">
				<div id="breadcrumb"> <a href="{:U('index/index')}" title="返回首页" class="tip-bottom"><i class="icon-home"></i> 首页</a>
					<a href="#" class="tip-bottom"> 本地生活</a> 
					<a href="{:U('Life/indextype')}" class="tip-bottom">分类管理</a>
					<a href="#" class="tip-bottom">添加分类</a>
				</div>
				<h1>添加分类</h1>
			</div>
			<div class="container-fluid">
				<hr>
				<div class="row-fluid">
					<div class="span12">
						<div class="widget-box">
							<div class="widget-title"> <span class="icon"> <i class="icon-align-justify"></i> </span>
								<h5>添加</h5>
							</div>
							<div class="widget-content nopadding">
								<form class="form-horizontal" method="post" action="{:U('Life/addtype')}" name="form1" id="basic_validate">
									<div id="from-wizard-1" class="step">
										<div class="control-group">
											<label class="control-label">标题：</label>
											<div class="controls">
												<input id="cate_name" type="text" name="cate_name" class="span6" />
												<span class="help-block">输入标题</span>
											</div>
										</div>
										<div class="control-group">
											<label class="control-label">子标题：</label>
											<div class="controls">
												<input id="subtitle" type="text" name="subtitle" class="span6" />
												<span class="help-block">输入子标题</span>
											</div>
										</div>
										<div class="control-group">
											<label class="control-label">图标 :</label>
											<div class="controls">
												<div style="width: 300px; height: 100px; float: left;">
													<input type="hidden" name="img_url" value="" id="data_photo" />
													<input id="photo_file" name="photo_file" type="file" multiple="true" value="" />
												</div>
												<div style="width: 300px; height: 100px; float: left;">
													<img id="upload_img" style="width: 100px;height: 100px" />
												</div>
											</div>
										</div>
										<div class="control-group">
											<label class="control-label">说明：</label>
											<div class="controls">
												<input id="note" type="text" name="note" class="span6" />
											</div>
										</div>
										<div class="control-group">
											<label class="control-label">排序：</label>
											<div class="controls">
												<input id="orderby" type="text" name="orderby" class="span6" />
											</div>
										</div>
										<div class="control-group">
											<label class="control-label"></label>
											<div class="controls">
												<button type="submit" class="btn btn-success">保存信息</button>
											</div>
										</div>
										<div id="submitted"></div>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		</div>

		<include file="Public:footer" />

		<js file='__PUBLIC__/Common/js/uploadify/jquery.uploadify.min.js' />
		<link rel="stylesheet" href="__PUBLIC__/Common/js/uploadify/uploadify.css">
		<js file='__PUBLIC__/Common/js/uploadify/jquery.uploadify.min.js' />
		<link rel="stylesheet" href="__PUBLIC__/Common/js/uploadify/uploadify.css">
		<script src="__ROOT__/Statics/Matrixadmin/js/jquery.ui.custom.js"></script>
		<script src="__ROOT__/Statics/Matrixadmin/js/bootstrap.min.js"></script>
		<script src="__ROOT__/Statics/Matrixadmin/js/jquery.validate.js"></script>
		<script src="__ROOT__/Statics/Matrixadmin/js/jquery.wizard.js"></script>
		<script src="__ROOT__/Statics/Matrixadmin/js/matrix.js"></script>
		<script src="__ROOT__/Statics/Admin/js/addlife.js"></script>
		<script language="javascript">
			var um = UM.getEditor('data_details', {
				imageUrl: "{:U('Upload/editor')}",
				imagePath: '/Uploads/',
				lang: 'zh-cn',
				langPath: UMEDITOR_CONFIG.UMEDITOR_HOME_URL + "lang/",
				focus: false
			});
		</script>
		<script type="text/javascript">
			$("#photo_file").uploadify({
				'swf': '__PUBLIC__/Common/js/uploadify/uploadify.swf?t={$nowtime}',
				'uploader': '{:U("Upload/uploadicon")}',
				'cancelImg': '__PUBLIC__/Common/js/uploadify/uploadify-cancel.png',
				'buttonText': '上传图片',
				'fileTypeExts': '*.gif;*.jpg;*.png',
				'queueSizeLimit': 1,
				'onUploadSuccess': function(file, data, response) {
					$("#data_photo").val(data);
					$("#upload_img").attr('src', '__ROOT__/Uploads' + data).show();
				}
			});

			function goPage(newURL) {
				if (newURL != "") {
					if (newURL == "-") {
						resetMenu();
					} else {
						document.location.href = newURL;
					}
				}
			}

			function resetMenu() {
				document.gomenu.selector.selectedIndex = 2;
			}
		</script>
	</body>

</html>